﻿
@{
    ViewBag.Title = "PersonalReply";
}
@model IEnumerable<Message_Board.Models.Message>
<h2>@ViewBag.userName</h2>
<table class="table table-striped" width="100%">
    <tr>
        <th> 留言内容 </th>
        <th> 留言主题 </th>
        <th> 留言类型 </th>
        <th> 留言时间 </th>
        <th> 留言楼数 </th>
        <th> 回复：</th>
        <th> 操作</th>
    </tr>
    @foreach (var item in Model.Skip(1))
    {
        <tr>
            <td> <label><a href="/Messages/Details2?id=@item.ID">@item.Content</a> </label> </td>
            <td> <label>@item.Subject </label> </td>
            <td> <label>@item.MessageType</label> </td>
            <td> <label>@item.Time</label> </td>
            <td> <label>@item.Number</label> </td>
            <td> <label>@item.ReplyNumber 楼 (@item.ReplyName)</label>  </td>
            <td> <label><a href="/Messages/DeleteReply?id=@item.ID">删除</a></label> </td>
        </tr>  }
</table>
<div class="container" style="text-align: center; border:none">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="margin: 0;">
        <ul id="PagerID" class="pagination pagination-sm">
            <li><a href="/Messages/PersonalReply?currentPage=1">首页 </a></li>
            <li><a href="/Messages/PersonalReply?currentPage=@((int)ViewBag.currentPage - 1)">上页 </a></li>
            <li>
                <span>
                    页:
                    <Label ID="lbCurrentPage" style="margin-bottom:0">@ViewBag.currentPage</Label>/<Label ID="lbMaxPage" style="margin-bottom:0">@ViewBag.maxPage</Label>
                </span>
            </li>
            <li><a href="/Messages/PersonalReply?currentPage=@((int)ViewBag.currentPage + 1)">下页 </a></li>
            <li><a href="/Messages/PersonalReply?currentPage=@ViewBag.maxPage">末页 </a></li>
            <li><a onclick="goto()">GoTo </a></li>
            <li>
                <input type="text" id="txtInputNumber" style="width: 50px;height:28px">
            </li>
        </ul>
    </div>
</div>
